import util from '@/libs/util'

const prefix = window.$config.modules.train

// 列表
export function getExamQuestionPageList (params) {
  return util.ajax.get(`${prefix}/examQuestion/pageList`, {
    params
  })
}

// 添加
export function postExamQuestionAdd (params) {
  return util.ajax.post(`${prefix}/examQuestion/add`, params)
}

// 编辑
export function putExamQuestionEdit (params) {
  return util.ajax.put(`${prefix}/examQuestion/edit`, params)
}
// 删除
export function deleteExamQuestionDel (id) {
  return util.ajax.delete(`${prefix}/examQuestion/del/${id}`)
}
